/**
  ******************************************************************************
  * @file    Bsp/button.c 
  * @author  zlf
  * @version V1.0.0
  * @date    2016-04-05
  * @brief   button.c module
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
	#include "button.h"

/* Private typedef -----------------------------------------------------------*/

/* Private define ------------------------------------------------------------*/

/* Private macro -------------------------------------------------------------*/

/* Private function prototypes -----------------------------------------------*/

/* Private variables ---------------------------------------------------------*/

/* Private functions ---------------------------------------------------------*/

/**
  * @brief  This function to initialise button gpio.
  * @param  None
  * @retval None
  */
void Button_Init(void)
{
	GPIO_InitTypeDef GPIO_InitStructure;

	//configure Led Arun
	
	GPIO_InitStructure.GPIO_Pin   = BTN_PIN_0 | BTN_PIN_1 | BTN_PIN_2 | BTN_PIN_3 | BTN_PIN_4;
	GPIO_InitStructure.GPIO_Mode  = GPIO_Mode_IPU;
	GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;	
	GPIO_Init( BTN_GPIO2, &GPIO_InitStructure );	
	
}


